cmake_minimum_required(VERSION 2.8)
project(CMDCORE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pthread -dl")
set(SRC_MAIN main.cpp)
set(SRC_RINTBUG ./lib/ringbuf/ringbuf.c ./lib/ringbuf/ringbuf.h)
include_directories (./include ./lib/list/src ./lib/ringbuf ./comm)

aux_source_directory(./ PROJECT_ROOT)
aux_source_directory(./cmd_core CMD_CORE)
aux_source_directory(./lib/list/src LIB_LIST)
aux_source_directory(./comm SRC_COMM)

LINK_LIBRARIES(pthread dl)
add_executable(cmd_core_test ${CMD_CORE} ${LIB_LIST} ${SRC_COMM} ${SRC_RINTBUG} ${SRC_MAIN})
#TARGET_LINK_LIBRARIES(pthread dl)
